﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DP.Decorator
{
    class Program
    {
        static void Main(string[] args)
        {
            BasePay bp = new PayOrder();
            bp = new BaseDecorator(bp);
            bp = new CashDecorator(bp);
            bp = new IntegralDecorator(bp);
            bp.Pay();
            Console.ReadKey();
        }
    }
}
